package com.cms.pms;

import com.cms.pms.impl.TransactionImpl;

public class PMS {

	public static Transaction newTransaction(String sign, Object[] args) {
		Transaction t = new TransactionImpl(sign);
		if (PMSContext.getParser().isMatched(sign)) {
			t.setTID(PMSContext.getParser().getTID(sign, args));
			t.setTags(PMSContext.getParser().getTags(sign, args));
		}
		return t;
	}
}
